package com.lb.trac.pojo.condition;

import java.math.BigDecimal;
import java.util.Collection;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;

import com.lb.trac.util.SQLCondition;

public class FindTicketsByIds implements SQLCondition {

	private Collection<BigDecimal> ids;

	public FindTicketsByIds(Collection<BigDecimal> ids) {
		this.ids=ids;
	}

	@Override
	public Criterion create(Object... params) {
		Criterion c = Restrictions.in("idTicket", ids);
		return c;
	}

}
